package org.lanqiao.tjut.controller;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.lanqiao.tjut.bean.UsersBean;
import org.lanqiao.tjut.bean.UsersBeanTea;
import org.lanqiao.tjut.myUtils.MyUtils;
import org.lanqiao.tjut.service.ServiceFactory;

public class UserInfoRevise extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		request.setCharacterEncoding("UTF-8");
		// 准备用户进行修改的数据
		// 结果跳转页面
		String strJumpPage = "";
		// 修改
		// 获取id主键值
		String strUid = request.getParameter("uid");
		
		UsersBean usersB = ServiceFactory.getUserInfoManagerServiceInstance().getUserInfoById(strUid);
		// 将数据缓存到session对象中
		request.setAttribute("usersB", usersB);
		// 跳转修改结果页
		strJumpPage = "logined/UserInfoManager/userInfoAdd.jsp";

		// 跳转到修改页面
		request.getRequestDispatcher(strJumpPage).forward(request, response);
		
		
	}

}
